/**
    ******************************************************************************
    * @file    biTree.h
    * @author  debian
    * @version V1.0.0
    * @date    2019-12-08
    * @brief   二叉树
    ******************************************************************************
    * @attention
    *
    *
    ******************************************************************************
    */ 

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __BITREE_H
#define __BITREE_H

#ifdef __cplusplus
    extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/


/** @addtogroup DataStruct_Driver
    * @{
    */

/** @addtogroup biTree
    * @{
    */
typedef int Elemtype;


#define BITREE_ENTRY(name, type)	\
	struct name						\
	{								\
		struct type *left;			\
		struct type *right;			\
	}

typedef struct BiTree_node
{
	Elemtype data;								//结点数据
	BITREE_ENTRY(, BiTree_node) bst;				//左右孩子的结点
}_BiTree_node;


typedef struct BiTree
{
	struct BiTree_node *root;
}_BiTree;


/* Exported types ------------------------------------------------------------*/
/** @defgroup 
    * @{
    */ 



/**
    * @}
    */


/* Exported constants --------------------------------------------------------*/

/* Exported macro ------------------------------------------------------------*/

/* Exported functions --------------------------------------------------------*/ 
/* Initialization and de-initialization functions *******************************/
/** @addtogroup biTree_Exported_Functions
    * @{
    */

/** @addtogroup biTree_Exported_Functions_Group1
    * @{
    */
    int biTree_creat(void);
    int biTree_destroy(void);

/**
    * @}
    */

/* operation functions *******************************************************/
/** @addtogroup biTree_Exported_Functions_Group2
    * @{
    */



/**
    * @}
    */

/**
    * @}
    */ 

/**
    * @}
    */

/**
    * @}
    */


#ifdef __cplusplus
}
#endif

#endif /* __BITREE_H */

/******************* (C) 2019 HOME 深圳龙华 *****END OF FILE****/

